const test1 = {
    //属性
    state: {
        name1: '我是name1',
        value1: '我是value1'
    },
    //同步方法
    mutations: {
        SET_NAME1: (state, name) => {
            state.name1 = name
        },
        SET_VALUE1: (state, value) => {
            state.value1 = value
        }
    },
    //异步方法
    actions: {
        setName1({commit}, name) {
            console.log(1111111111)
            console.log('SET_NAME1', name)
            commit('SET_NAME1', name);
        },
        setValue1({commit, value}) {
            commit('SET_NAME1', value);
        },
    }
}

export default test1
